package com.zhengxyou.jetpackdemo.room.dao;

import com.zhengxyou.jetpackdemo.room.entity.UserInfo;

import java.util.List;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;

@Dao
public interface UserInfoDao {
    @Query("SELECT * FROM user_info")
    List<UserInfo> getAll();

    @Insert
    void insert(UserInfo userInfo);
}
